<#include "/common/layout_dl.html">
<@header>
</@header>
<@body>
 <form role="form" class="layui-form layui-form-pane" method="post" action="${base}/system/dictionary/doEditDic">
  <input type="hidden" name="id" value="${(obj.id)!}" />
  <div class="box-body">
       <div class="form-group">
          <label>所属分类/一级字典</label>
          <select name="categoryId" class="form-control select2" style="width: 100%;" lay-verify="required" lay-ignore>
            <#list list as m>
              <option value="${(m.categoryId)!}" ${(m.categoryId==obj.categoryId)?string('selected="selected"','')} > ${m.categoryNameChs!}</option>
            </#list>
          </select>
        </div>
        <#if obj.parentId == 0>
        	<input type="hidden" name="parentId" value="0">
        <#else>
        	<select id="parentId" name="parentId" class="form-control select2" style="width: 100%;" lay-verify="required" lay-ignore>
        	<#list listDics as n>
	         <option value="${(n.id)!}" ${(n.id==obj.parentId)?string('selected="selected"','')}>${(n.dvalue)!}</option>
	         </#list>
	     	</select>
        </#if>
        <input type="hidden" name="deep" value="${obj.deep}">
		<div class="form-group">
	     <label for="uname">字典名称</label>
	    	<input type="text" name="dvalue" class="form-control" placeholder="请输入字典名称" lay-verify="required" value="${obj.dvalue}">
	   </div>
	   <div class="form-group">
	     <label for="uname">描述</label>
	    	<input type="text" name="desc" class="form-control" placeholder="请输入描述"  lay-verify="required" value="${obj.desc}">
	   </div>
	   <div class="form-group">
	     <label for="uname">排序</label>
	    	<input type="text" name="sort" class="form-control" placeholder="请输入排序"  lay-verify="required|number" value="${obj.sort}">
	   </div>
      <div class="form-group">
	    <button type="submit" class="btn btn-success" lay-submit lay-filter="submit"><i class="fa fa-save"></i>  提 交</button>
	    <a  class="btn btn-default" href="javascript:parent.layer.closeAll('iframe');"><i class="fa fa-close"></i>  取消</a>
	  </div>
  </div><!-- /.box-body -->
</form>
</@body>
<@footer>
</@footer>